package com.elecbook.auth.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "custom-oauth")
public class OauthServerProperties {

    // 授权后允许访问的所有资源
    private List<String> resourceIds;

    // 资源服务的标识
    private String projectResourceId;

    public String getProjectResourceId() {
        return projectResourceId;
    }

    public void setProjectResourceId(String projectResourceId) {
        this.projectResourceId = projectResourceId;
    }

    public List<String> getResourceIds() {
        return resourceIds;
    }

    public void setResourceIds(List<String> resourceIds) {
        this.resourceIds = resourceIds;
    }
}
